package com.bishe.demo.modules.ticket.controller;

import com.bishe.demo.modules.ticket.entity.TicketSite;
import com.bishe.demo.modules.ticket.service.ModelSeatingService;
import com.bishe.demo.modules.ticket.service.TicketSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description TicketSiteController
 * @Author YHQ
 * @Date 2021/4/1 13:43
 */
@RestController
@RequestMapping("/api")
public class TicketSiteController {
    @Autowired
    private TicketSiteService ticketSiteService;
    @GetMapping("/fkTimeIds/{sMId}")
    List<Integer> getFkTimeIdBySMId(@PathVariable Integer sMId){
       return ticketSiteService.getFkTimeIdBySMId(sMId);
    }
    @GetMapping("/cities1/{sMId}")
    List<Integer> getFkCityIdBySMId(@PathVariable Integer sMId){
        return ticketSiteService.getFkCityIdBySMId(sMId);
    }
    @GetMapping("/ticketSite/{sMId}")
    List<TicketSite> getTicketSiteBySmId(@PathVariable Integer sMId){
       return ticketSiteService.getTicketSiteBySmId(sMId);
    }
}
